from utils import platform

wlan = None

if platform.is_esp32_series():
    from lib.net.wlan import wlan_esp32

    wlan = wlan_esp32.WLAN()
elif platform.is_raspberry_pico_series():
    from lib.net.wlan import wlan_at

    wlan = wlan_at.WLAN()

if not wlan:
    raise Exception("wlan: unsupported platform")


if __name__ == "__main__":
    wlan.connect()
    wlan.scan()
